package com.spring.gll.single;

public class LazySingle {
    private static LazySingle lazySingle;

    public static LazySingle getLazySingle(){
        if(lazySingle==null){
            lazySingle = new LazySingle();
        }
        return lazySingle;
    }

    public static void main(String [] args){
        LazySingle ls = new LazySingle();
        LazySingle ls1 = ls.getLazySingle();
        LazySingle ls2 = ls.getLazySingle();
        System.out.println(ls1);
        System.out.println(ls2);
    }

}
